package org.example.web.fegin;

import com.yc.damai.entity.DmUser;
import org.springframework.stereotype.Component;

/**
 * Company 源辰信息
 *
 * @author navy
 * @date 2024/6/23
 * Email haijunzhou@hnit.edu.cn
 */
@Component
public class UserDoImpl implements UserDo{

    @Override
    public String user() {
        return null;
    }

    @Override
    public int addNum(int x, int y) {
        return x+y;
    }

    @Override
    public String hello(String name) {
        return "降级了 Hello " + name;
    }

    @Override
    public DmUser setPwd(DmUser user, String pwd) {
        user.setPassword("降级的" + pwd);
        return user;
    }
}
